package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.BuchangzzMapper;
import com.information.manage.MaintenanceRecord.pojo.Buchangzz;
import com.information.manage.MaintenanceRecord.service.BuchangzzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BuchangzzServiceImpl implements BuchangzzService {
    @Autowired
    private BuchangzzMapper buchangzzMapper;

    @Override
    public List<Buchangzz> selectAll() {
        return buchangzzMapper.selectAll();
    }

    @Override
    public void addMaintBuchangzz(Buchangzz buchangzz) {
        buchangzzMapper.insert(buchangzz);
    }

    @Override
    public void updateMaintBuchangzz(Buchangzz buchangzz) {
        buchangzzMapper.update(buchangzz);
    }

    @Override
    public void deleteMaintBuchangzz(Integer bcid) {
        buchangzzMapper.delete(bcid);
    }

    @Override
    public void logicDeleteMaintBuchangzz(Integer bcid) {
        buchangzzMapper.logicDelete(bcid);
    }
}